package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * 百融 配置信息
 * <p>
 * Created by Jerry on 2017/7/17.
 */
@Component
//@ConfigurationProperties(prefix = "bairong")
//@PropertySource("classpath:properties/bairong.properties")
@DisconfFile(targetDirPath = "disconf", filename = "bairong.properties")
public class BairongProperties {

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    private String apiCode;

    /**
     * 打包调用api name
     */
    private String apiNameBatch;

    /**
     * meal: 特殊名单核查
     */
    private String specialList;

    /**
     * meal: 多次申请核查
     */
    private String loanApplications;

    /**
     * meal: 法院被执行人
     */
    private String courtExecution;

    /**
     * 单独调用api name
     */
    private String apiNameSingle;

    /**
     * meal: 手机三要素
     */
    private String mobileCheck;

    /**
     * meal: 手机在网时长
     */
    private String mobileOnlineDuration;

    /**
     * meal: 手机在网状态
     */
    private String mobileOnlineStatus;

    /**
     * meal: 学历查询标准版
     */
    private String education;


    private String loginUrl;

    private String huaxiangUrl;

    private String hainaUrl;

    private String trinityUrl;


    @DisconfFileItem(name = "bairong.apicode", associateField = "apiCode")
    public String getApiCode() {
        return apiCode;
    }

    public void setApiCode(String apiCode) {
        this.apiCode = apiCode;
    }

    @DisconfFileItem(name = "bairong.username", associateField = "username")
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @DisconfFileItem(name = "bairong.password", associateField = "password")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @DisconfFileItem(name = "bairong.apiNameBatch", associateField = "apiNameBatch")
    public String getApiNameBatch() {
        return apiNameBatch;
    }

    public void setApiNameBatch(String apiNameBatch) {
        this.apiNameBatch = apiNameBatch;
    }

    @DisconfFileItem(name = "bairong.specialList", associateField = "specialList")
    public String getSpecialList() {
        return specialList;
    }

    public void setSpecialList(String specialList) {
        this.specialList = specialList;
    }

    @DisconfFileItem(name = "bairong.loanApplications", associateField = "loanApplications")
    public String getLoanApplications() {
        return loanApplications;
    }

    public void setLoanApplications(String loanApplications) {
        this.loanApplications = loanApplications;
    }

    @DisconfFileItem(name = "bairong.courtExecution", associateField = "courtExecution")
    public String getCourtExecution() {
        return courtExecution;
    }

    public void setCourtExecution(String courtExecution) {
        this.courtExecution = courtExecution;
    }

    @DisconfFileItem(name = "bairong.apiNameSingle", associateField = "apiNameSingle")
    public String getApiNameSingle() {
        return apiNameSingle;
    }

    public void setApiNameSingle(String apiNameSingle) {
        this.apiNameSingle = apiNameSingle;
    }

    @DisconfFileItem(name = "bairong.mobileCheck", associateField = "mobileCheck")
    public String getMobileCheck() {
        return mobileCheck;
    }

    public void setMobileCheck(String mobileCheck) {
        this.mobileCheck = mobileCheck;
    }

    @DisconfFileItem(name = "bairong.mobileOnlineDuration", associateField = "mobileOnlineDuration")
    public String getMobileOnlineDuration() {
        return mobileOnlineDuration;
    }

    public void setMobileOnlineDuration(String mobileOnlineDuration) {
        this.mobileOnlineDuration = mobileOnlineDuration;
    }

    @DisconfFileItem(name = "bairong.mobileOnlineStatus", associateField = "mobileOnlineStatus")
    public String getMobileOnlineStatus() {
        return mobileOnlineStatus;
    }

    public void setMobileOnlineStatus(String mobileOnlineStatus) {
        this.mobileOnlineStatus = mobileOnlineStatus;
    }

    @DisconfFileItem(name = "bairong.education", associateField = "education")
    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    @DisconfFileItem(name = "bairong.loginUrl", associateField = "loginUrl")
    public String getLoginUrl() {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    @DisconfFileItem(name = "bairong.huaxiangUrl", associateField = "huaxiangUrl")
    public String getHuaxiangUrl() {
        return huaxiangUrl;
    }

    public void setHuaxiangUrl(String huaxiangUrl) {
        this.huaxiangUrl = huaxiangUrl;
    }

    @DisconfFileItem(name = "bairong.hainaUrl", associateField = "hainaUrl")
    public String getHainaUrl() {
        return hainaUrl;
    }

    public void setHainaUrl(String hainaUrl) {
        this.hainaUrl = hainaUrl;
    }

    @DisconfFileItem(name = "bairong.trinityUrl", associateField = "trinityUrl")
    public String getTrinityUrl() {
        return trinityUrl;
    }

    public void setTrinityUrl(String trinityUrl) {
        this.trinityUrl = trinityUrl;
    }
}
